@echo off
echo.
echo ========== Push to Gitee + GitHub ==========
echo Time: %date% %time%
echo.

:: Set Git user info (only needed once)
git config --global user.name "CorazoNZzz"
git config --global user.email "liuyibin221@gmail.com"

:: Set remotes (update if repo changed)
git remote remove gitee 2>nul
git remote add gitee https://gitee.com/corazonzzz/zhezhengding.git


:: Set main branch
git branch -M main

:: Commit changes
git add .
set commit_msg=Update at %date% %time%
git commit -m "%commit_msg%"

:: Push to Gitee
echo.
echo --- Pushing to Gitee...
git push -u gitee main || echo [Gitee Push Failed]

:: Push to GitHub
echo.
echo --- Pushing to GitHub...
git push -u github main || echo [GitHub Push Failed]

echo.
echo Push process completed.
pause
